<div>
    <div>
        <div class="panel panel-default m-n">
            <div class="panel-heading font-bold">提现详细</div>
                <div class="panel-body form-horizontal">
                    <div class="form-group text-center">
                        <h3>{{ withdrawals.agentArea }}</h3>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><b>姓名:</b></label>
                        <label class="col-sm-4 control-label text-left">{{ withdrawals.agentName }}</label>
                        <label class="col-sm-2 control-label"><b>手机号:</b></label>
                        <label class="col-sm-4 control-label text-left">{{ withdrawals.mobile }}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><b>提现金额:</b></label>
                        <label class="col-sm-4 control-label text-left text-danger"><b>￥{{ withdrawals.amount | number }}</b></label>
                        <label class="col-sm-2 control-label"><b>提现状态:</b></label>
                        <label class="col-sm-4 control-label text-left">
                            <span class="text-primary" ng-if="withdrawals.status == -1">客户自己取消</span>
                            <span class="text-info" ng-if="withdrawals.status == 0">待审核中</span>
                            <span class="text-warning" ng-if="withdrawals.status == 1">审核通过</span>
                            <span class="text-danger" ng-if="withdrawals.status == 2">
                                提现失败
                                <span style="text-decoration: underline; font-size: 10px; color: grey;" popover="{{ withdrawals.failureRemarks }}" popover-trigger="mouseenter">(原因)</span>
                            </span>
                            <span class="text-success" ng-if="withdrawals.status == 3">提现成功</span>
                        </label>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><b>银行卡:</b></label>
                        <label class="col-sm-10 control-label text-left">{{ withdrawals.bankCard }}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><b>客户留言:</b></label>
                        <label class="col-sm-10 control-label text-left">{{ withdrawals.remarks }}</label>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group text-center">
                        <h4>以下实时数据</h4>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><b>钱包余额:</b></label>
                        <label class="col-sm-10 control-label text-left">{{ withdrawals.wallet.balance | number }}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><b>总收入:</b></label>
                        <label class="col-sm-10 control-label text-left">{{ withdrawals.wallet.totalAmount | number }}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><b>已提现:</b></label>
                        <label class="col-sm-10 control-label text-left">{{ withdrawals.wallet.totalWithdrawals | number }}</label>
                    </div>
                </div>
                <div class="panel-footer text-right">
                    <div>
                        <button class="btn m-b-xs w-xs btn-info" ng-if="withdrawals.status == 0" ng-click="pass(withdrawals)">审核通过</button>
                        <button class="btn m-b-xs w-xs btn-danger" ng-if="withdrawals.status == 0" ng-click="withdrawalsFailure(withdrawals)">审核不通过</button>
                        <button class="btn m-b-xs w-xs btn-info" ng-if="withdrawals.status == 1" ng-click="withdrawalsSuccess(withdrawals)">提现成功</button>
                        <button class="btn m-b-xs w-xs btn-danger" ng-if="withdrawals.status == 1" ng-click="withdrawalsFailure(withdrawals)">提现失败</button>
                        <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">关闭</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>